package com.mandao.oneplat.boot.util;

import java.util.Collection;
import java.util.Map;

/**
 * Created by sunson on 2017/3/23.
 */
public final class CollectionUtil {

    public static boolean isEmpty(Collection c) {
        return c == null || c.isEmpty();
    }

    public static boolean isNotEmpty(Collection c) {
        return !isEmpty(c);
    }

    public static boolean isEmpty(Map m) {
        return m == null || m.isEmpty();
    }

    public static boolean isNotEmpty(Map m) {
        return !isEmpty(m);
    }
}
